import React from 'react'
import { useSelector } from 'react-redux'

import { drawFloor } from './util/area'

const Area = () => {
  const canvasBg = useSelector((store) => store.middle.canvasBg)

  return <div onClick={() => drawFloor(canvasBg)}>面积</div>
}

export default Area
